﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace frm_view
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SqlConnection sqlconn = new SqlConnection(frm_view.Properties.Settings.Default.dynamic);
            try
            {
                sqlconn.Open();
                sqlconn.Close();
                Application.Run(new frmView());
            }
            catch (Exception)
            {

                Application.Run(new dbconnect());
            }

         
        // Application.Run(new View_Chuong());
        
        // Application.Run(new Form1());
         // Application.Run(new frmAdmin());
        }
    }
}
